<template>
  <div class="pagination-wrapper">
    <div>
      <el-button plain size="small" @click="prev">上一题</el-button>
    </div>
    <div>
      <el-button type="primary" size="small" @click="next">下一题</el-button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    // 下一题
    next() {
      this.$emit('next')
    },
    // 上一题
    prev() {
      this.$emit('prev')
    }
  }
}
</script>

<style lang="scss" scoped>
.pagination-wrapper {
  border-top: 1px solid #f7f7f7;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  .el-button {
    width: 140px;
  }
}
</style>
